package com.wangy.database.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.wangy.database.bean.GeneratorType;
import com.wangy.database.bean.PrimaryKeyType;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Id {

	String value() default "";
	PrimaryKeyType type() default PrimaryKeyType.AUTO_INCREAMENT;
	GeneratorType generator() default GeneratorType.uuid;
	String name() default "";
}
